#ifndef __SOCKET_H_
#define __SOCKET_H_

#include "Noncopyable.hpp"

namespace ln{

class Socket
:Noncopyable
{
public:
    Socket();

    explicit Socket(int fd)
    :_fd(fd)
    {

    }

    ~Socket();
    int fd() const { return _fd; }
    void shutdownWrite();

private:
    int _fd;
};

}//end of namespace ln

#endif

